package org.csu.myProject.persistence;

import org.csu.myProject.domain.User;

import java.util.List;

public interface UserDAO {
    //登录
    User findUserByUsernameAndPassword(String username, String password);

    //查询所有用户的信息
    List<User> getUserList();

    //查询单个用户的信息
    User getUserInfo(int id);

    //新增用户
    int insertUser(User user);

    //根据用户名查询用户
    boolean getUserByUsername(String username);
}
